package com.ssy.lingxi.member.merchant.model.vo.manage.request;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.PositiveOrZero;
import java.io.Serializable;

/**
 * 会员Id和角色Id作为接口参数的VO
 * @author 万宁
 * @version 2.0.0
 * @date 2020-09-16
 */
public class MemberAndRoleIdVO implements Serializable {
    private static final long serialVersionUID = 4138898388756282825L;

    /**
     * 商品提供方的会员Id
     */
    @NotNull(message = "会员Id不能为空")
    @PositiveOrZero(message = "会员Id要大于等于0")
    private Long memberId;

    /**
     * 商品提供方的角色Id
     */
    @NotNull(message = "会员角色Id不能为空")
    @PositiveOrZero(message = "会员角色Id要大于等于0")
    private Long roleId;

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }
}
